<!-- 通用组件：时间选择器 -->
<template>
    <div :id="id">
        <el-time-select v-model="value" :picker-options="{
    start: '08:30',
    step: '00:15',
    end: '18:30'
  }" placeholder="选择时间">
        </el-time-select>
    </div>
</template>

<script>
    import register from '@/js/main/register.js';

    export default {
        props: {
            element: {
                type: Object
            },
            id: {
                type: String
            }
        },
        data() {
            return {
                value: ''
            }
        },
        created() {
            register.addComponent(this);
        },
        destroyed() {
            register.removeComponent(this);
        }
    }
</script>